package Level02_one;

public class Person {
    //18 岁的景甜在使用 iPhone 手机玩游戏
    private int age;
    private String name;

    void userPhone(Phone phone){
        System.out.println(getAge()+"岁的"+getName()+"在使用"+phone.getBrand()+"手机玩游戏");
    }


    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }
    public Person(){
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
